package com.plugin.core.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 护理服务管理实体类
 * 
 * @author mark
 * @date 2025-07-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("elder_service_nursing")
@Schema(name = "ElderServiceNursing", description = "护理服务管理表")
public class ElderServiceNursing {

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "类型：1护理计划), 2护理项目), 3(护理记录), 4(护理变更), 5(核查), 6生活记录)")
    @TableField("record_type")
    private String recordType;

    @Schema(description = "护理计划内容")
    @TableField("care_plan")
    private String carePlan;

    @Schema(description = "护理项目名称")
    @TableField("care_item")
    private String careItem;

    @Schema(description = "护理记录详情")
    @TableField("care_record")
    private String careRecord;

    @Schema(description = "护理变更内容")
    @TableField("care_change")
    private String careChange;

    @Schema(description = "核查内容")
    @TableField("audit_content")
    private String auditContent;

    @Schema(description = "核查状态：1(待核查), 2(已通过), 3(未通过), 4(核查中)")
    @TableField("audit_status")
    private String auditStatus;

    @Schema(description = "生活记录内容")
    @TableField("life_record")
    private String lifeRecord;

    @Schema(description = "护理人姓名")
    @TableField("caregiver_name")
    private String caregiverName;

    @Schema(description = "护理人岗位")
    @TableField("caregiver_post")
    private String caregiverPost;

    @Schema(description = "护理小组名称")
    @TableField("caregiver_group")
    private String caregiverGroup;

    @Schema(description = "床位号")
    @TableField("bed_number")
    private String bedNumber;

    @Schema(description = "护理知识库")
    @TableField("care_knowledge")
    private String careKnowledge;


    @Schema(description = "护理批次")
    @TableField("care_batch")
    private String careBatch;

    @Schema(description = "创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;
}
